﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharePoint.UserAccountControl
{
    /// <summary>
    /// A domain class that represents a permission granted to a principal.
    /// </summary>
    public class PrincipalPermission
    {
        /// <summary>
        /// Gets or sets the name of the user.
        /// </summary>
        /// <value>The name of the user.</value>
        public string UserName { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether this instance is domain group.
        /// </summary>
        /// <value>
        /// 	<c>true</c> if this instance is domain group; otherwise, <c>false</c>.
        /// </value>
        public bool IsDomainGroup { get; set; }

        /// <summary>
        /// Gets or sets the site URL.
        /// </summary>
        /// <value>The site URL.</value>
        public string SiteUrl { get; set; }
    }
}
